import request from '@/utils/request'

export function getClauseListByPage(data) {
  return request.get('/Clause/list', { params: data })
}

export function getAllClause(data) {
  return request.get('/Clauses', data)
}

export function addClause(data) {
  return request.post('/Clause', data)
}

export function updateClause(data) {
  return request.put('/Clause', data)
}

export function deleteClause(id) {
  return request.delete('/Clause/' + id, id)
}
